<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>style</title>
    <script src="../../vue.js"></script>
    <style>
    </style>
    <script>
        window.onload=function () {
            new Vue({
                el:'#box',
                data: {
                    c:{color:'red'},
                    b:{backgroundColor:'blue'}//复合样式采用驼峰命名法
                },
                methods:{
                }
            });
        };
    </script>
</head>
<body>
<div id="box">
    <strong :style="[c,b]">文字...</strong>
</div>
</body>
</html>